package org.nanotek.cms.domain.document;

import java.util.List;

import org.nanotek.cms.domain.AbstractBase;
import org.nanotek.util.Base;

@SuppressWarnings("serial")
public class DocumentRelation extends AbstractBase<Long>{

	private Long id;
	private MediaReference rootDocument;
	private List<MediaReference> documents;

	public DocumentRelation(){}

	public DocumentRelation(MediaReference rootDocument)
	{
		this.rootDocument = rootDocument;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	@Override
	public Long getId() {
		return id;
	}


	public MediaReference getRootDocument() {
		return rootDocument;
	}

	public void setRootDocument(MediaReference rootDocument) {
		this.rootDocument = rootDocument;
	}

	public List<MediaReference> getDocuments() {
		return documents;
	}

	public void setDocuments(List<MediaReference> documents) {
		this.documents = documents;
	}
}
